#if defined(_MSC_VER)
#pragma once
#endif

#ifndef GLTEXTURE_H
#define GLTEXTURE_H

#include "core/lm.h"
#include "core/imageio.h"

// simple openGL texture class

class GLTexture {
public:
	~GLTexture();
	GLTexture();
	GLTexture(char *filename);
	void SetTexture(char *filename);
	void Enable();
	void Disable();
private:
	void LoadTexture();
	char filename[256];
	unsigned char *data;
	int width, height;
	bool enable;
};

#endif	// GLTEXTURE_H